import java.util.Scanner;

public class Main1669 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        if (a==1){
            System.out.println("swim");
        }else if (a==3){
            System.out.println("program");
        }else if (a==5){
            System.out.println("read");
        }else if (a==6){
            System.out.println("math");
        }else if (a==2||a==4||a==7){
            System.out.println("rest");
        }
    }
}
